<template>
  <m-definition-details v-if="id" :taskType="4"></m-definition-details>
  <m-create-dag v-else :taskType="4"></m-create-dag>
</template>
<script>
import mDefinitionDetails from '@/view-module/dolphin-scheduler/pages/dag/definitionDetails.vue'
import mCreateDag from '@/view-module/dolphin-scheduler/pages/dag/index.vue'
export default {
  components: { mDefinitionDetails , mCreateDag},
  data(){
    return {
      id: this.$router.currentRoute.params.id || null
    }
  },
  created(){
    
  }
}
</script>